package commandapplication;


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.0CBD5575-6B6D-AB63-C491-875ADA734255]
// </editor-fold> 
public class Comm2 implements CommandAbstract {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.6F45FC24-C5D6-BFDE-C115-0ED1A51AEFEB]
    // </editor-fold> 
    private boolean parell;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.7B238ACB-9531-19C8-EE13-40E2582087CF]
    // </editor-fold> 
    private int valor;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.D349F2E3-9585-0CCE-25A7-2A2EF3A76C61]
    // </editor-fold> 
    public Comm2 () {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.8D80CF75-8EE7-8832-484B-F147BEE0A24B]
    // </editor-fold> 
    public void execute () {
        System.out.println("Executant ordre 2");
        if (valor%2==0){
            parell=true;
        }else parell = false;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.2110D440-FDA1-15F7-66CD-E21F11076DD6]
    // </editor-fold> 
    public int getValor () {
        return valor;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.23B10425-E739-8A50-8C1B-7832060D670C]
    // </editor-fold> 
    public void setValor (int val) {
        this.valor = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.7CE1B38F-0C25-14E4-86BD-1B01BEE97976]
    // </editor-fold> 
    public boolean getParell () {
        return parell;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.249F4FC5-FE09-060A-F266-2DC359998F35]
    // </editor-fold> 
    public void setParell (boolean val) {
        this.parell = val;
    }

}

